/*
 *  $Id: LesserSoulCage.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Spells {
    public class LesserSoulCage: TargetEnchantmentCard<Creature> {
        public LesserSoulCage(): base("001_a_s_lesser_soul_cage") {
            Level = CompleteLevel.ReadyForTest;
            Version = 0;
            Element = ElementType.Air;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Air, 3);
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            base.DoAction(args);
            args.Target.AddAffect(new TimeAffect(4, new Affects.Unbind()));
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new SoulCage.SoulCageAffect(false);
        }
    }
}
